package com.three.work;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by Zhang on 2018/8/4.
 * springboot启动类
 */
@MapperScan({"com.three.work.mapper"})
//扫描公共模块下的包     注入注解
@ComponentScan(basePackages = {"com.three.work"})
@ServletComponentScan(value = "com.three.work.config")
@SpringBootApplication
@Slf4j
public class PayMentServerApplication   {

    public  static  void main(String [] args){
        log.info("Springboot启动中....");
        SpringApplication.run(PayMentServerApplication.class,args);
        log.info("启动成功！");
    }
}